var http = require('http');
var server = http.createServer(); 

server.listen(8000);
server.on('request', function(req, res) {
    res.write('response success!');
    res.end();
    console.log(req.method);
})